package edu.sctu.practice.class02.yangshengyu.text01.test01;

/**
 * Created by Cullen on 2015/10/10.
 */
public class A {
    int v = 100;

    public void guest(int a) {

        if (a == v) {
            System.out.println("恭喜您，猜测成功！");

        } else if (a > v) {
            System.out.println("对不起，猜测数大了！");

        }else{
            System.out.println("对不起。猜测数小了！");

        }

    }
}
